#include <glew.h>
#include <sstream>
#include "GLEWWrapper.hpp"

GLEWWrapper::GLEWWrapper(void)
{
}


GLEWWrapper::~GLEWWrapper(void)
{
}

void		GLEWWrapper::init()
{
	GLenum	init;

	if ((init = glewInit()) != GLEW_OK)
	{
		std::stringstream	errorMessage;

        errorMessage << "Error: GLEWWrapper.init: Invalid return from glewInit: " << glewGetErrorString(init);
#ifndef __MINGW32__
        throw std::exception(errorMessage.str().data());
#else
        throw std::exception();
#endif
    }
}

void        GLEWWrapper::destroy()
{
}
